<?php


namespace app\site\validate;


use think\Validate;

class UserBatchValidate extends Validate{

    protected $rule =   [
        'mobile'  => 'require|length:11',
        'contact' => 'require',
        'uid' => 'require|unique'
    ];

    protected $message  =   [
        'contact' => '请填写联系人',
//        'mobile.unique' => '手机号已被占用',
        'mobile' => '手机号错误',
        'uid.unique' => '会员已有进货商信息'

    ];

//    protected $scene = [
//        'userApiSetUserinfo'  =>  ['nickname','avatar'],
//    ];

}
